

local mt = ac.skill['弹射光球']
mt.temp = '攻击触发'
mt.cool = 10
mt.model1 = [[Abilities\Spells\Orc\Shockwave\ShockwaveMissile.mdl]]

function mt:on_run(hero,target)
    local damage = 1000 + hero:get('敏捷')*self.data2
    local r = hero:get_point() / target:get_point()
    local mover = hero:launch_wave(self.model1,r,1200,1600)
    local lock = {}
    sc.loopUnit(0.03,mover,275,function(_,unit)
        if unit:is_enemy(hero) then
            hero:create_damage(unit,damage,self)
        end
    end):set_lock(lock)
end
